<div xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<table align="center"  border="0">  
  <tr>
    <td>
       <ui:repeat value="#{topProducts}" var="item">
                        <div class="bestinner">
                            <div class="besttitle">
                                <s:link view="/product.xhtml" >
                                    
                                    <f:param name="id" value="#{item.productId}"/>
                                </s:link>
                            </div>
                            <div class="bestimage">
                                <s:link view="/product.xhtml">
                                    <f:param name="id" value="#{item.productId}"/>
                                    <img src="#{item.pictureUrl}" pic="#{item.pictureUrl}"/>
                                    <h:outputText value="#{item.design} "></h:outputText>
                                    <h:outputText value="#{item.length}"></h:outputText>
	                         <br/>
                                    <h:outputText value="#{item.style}  "></h:outputText>
		                            <h:outputText value="#{item.waist}   "></h:outputText>
	                         
		                            <h:outputText value="#{item.fitSeason}  "></h:outputText>
		                     <br/>
		                            <h:outputText value="#{item.price}"></h:outputText>
	                            </s:link>
                            </div>
                        </div>
            </ui:repeat>
      </td>
    </tr>
  </table>
<h:form>
	<table align="center" border="0">
		<tr>
			<td>
			<div class="dividepage"><s:link view="/home.xhtml"
				rendered="#{topQuery.previousExists}" value="第一页">
				<f:param name="firstResult" value="0" />
			</s:link> <h:outputText value="          "></h:outputText> <s:link
				view="/home.xhtml" rendered="#{topQuery.previousExists}" value="前一页">
				<f:param name="firstResult" value="#{topQuery.previousFirstResult}" />
			</s:link> <h:outputText value="          "></h:outputText> <s:link
				view="/home.xhtml" rendered="#{topQuery.nextExists}" value="下一页">
				<f:param name="firstResult" value="#{topQuery.nextFirstResult}" />
			</s:link> <h:outputText value="          "></h:outputText> <s:link
				view="/home.xhtml" rendered="#{topQuery.nextExists}" value="最后一页">
				<f:param name="firstResult" value="#{topQuery.lastFirstResult}" />
			</s:link>
			</div>
			</td>
		</tr>
	</table>
</h:form>
</div>